/* 头部样式 */
.header {
    height: 80px;
    background: #fff;
    border-bottom: 2px solid #e1251b;
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.page-title {
    font-size: 20px;
    font-weight: bold;
    margin-left: 50px;
}

/* 主要内容 */
.main {
    padding: 20px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 162px);
}

/* 订单状态标签 */
.order-tabs {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.tab-item {
    padding: 15px 30px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
}

.tab-item:hover {
    color: #e1251b;
}

.tab-item.active {
    color: #e1251b;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e1251b;
}

/* 订单列表 */
.order-item {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.order-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info {
    font-size: 12px;
    color: #666;
}

.order-info span {
    margin-right: 20px;
}

.order-status {
    color: #e1251b;
    font-size: 14px;
}

.order-content {
    padding: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.product-img {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.product-spec {
    font-size: 12px;
    color: #999;
}

.product-price {
    font-size: 14px;
    color: #333;
    margin-right: 40px;
}

.product-count {
    font-size: 12px;
    color: #999;
}

.order-footer {
    padding: 15px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.order-total {
    margin-right: 20px;
    font-size: 12px;
    color: #666;
}

.order-total .amount {
    color: #e1251b;
    font-size: 16px;
    font-weight: bold;
}

.order-actions button {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-pay {
    background: #e1251b;
    color: #fff;
    border: none;
}

.btn-pay:hover {
    opacity: 0.9;
}

.btn-view {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn-view:hover {
    color: #e1251b;
    border-color: #e1251b;
}

/* 页脚样式 */
.footer {
    background: #f5f5f5;
    padding: 20px 0;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* 订单详情模态框样式 */
.order-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-detail-modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close {
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

.label {
    width: 100px;
    font-weight: bold;
}

.value {
    flex: 1;
}

.product-detail-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.product-details {
    flex: 1;
}

.product-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.product-spec {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price-info {
    display: flex;
    justify-content: space-between;
}

.order-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-item.total {
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.shipping-status {
    margin-top: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 10px;
}

.status-text {
    flex: 1;
}

.status-time {
    color: #999;
}

.no-logistics, .no-coupons {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

.coupons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-item {
    border: 1px dashed #4CAF50;
    border-radius: 5px;
    padding: 10px;
    min-width: 150px;
    text-align: center;
}

.coupon-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.coupon-value {
    color: #4CAF50;
    font-size: 18px;
    margin-bottom: 5px;
}

.coupon-code {
    font-size: 12px;
    color: #999;
}
